package com.huawei.appmarket.service.store.awk.card;

import android.content.Context;
import android.os.Build.VERSION;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.FrameLayout;
import com.huawei.appgallery.foundation.card.base.card.BaseDistCard;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import o.cgz;
import o.ContentManager;
import o.epv;
import o.ewm.d;
import o.ewm.j;

public class NaviBlankCard extends BaseDistCard {
    private View ˋ;

    public NaviBlankCard(Context context) {
        super(context);
    }

    public cgz ˏ(View view) {
        ʽ(view);
        this.ˋ = view.findViewById(j.ॱㆍ);
        return this;
    }

    public void ˏ(CardBean cardBean) {
        LayoutParams layoutParams = (FrameLayout.LayoutParams) this.ˋ.getLayoutParams();
        if (layoutParams == null) {
            layoutParams = new FrameLayout.LayoutParams(-1, -2);
        }
        Context ˋ = ContentManager.getInstant().getContext();
        int dimensionPixelSize = ˋ.getResources().getDimensionPixelSize(d.ʼᐝ);
        if (epv.ʼ(ˋ)) {
            dimensionPixelSize = (dimensionPixelSize + ˋ.getResources().getDimensionPixelSize(d.ʽᐝ)) + this.ˋ.getContext().getResources().getDimensionPixelSize(d.ʼˊ);
        }
        if (VERSION.SDK_INT >= 23) {
            dimensionPixelSize += epv.ॱ();
        }
        layoutParams.height = dimensionPixelSize;
        this.ˋ.setLayoutParams(layoutParams);
    }
}
